package org.hj.modules.demo.test.service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.hj.modules.demo.test.entity.HjOrderCustomer;
import org.hj.modules.demo.test.entity.HjOrderMain;
import org.hj.modules.demo.test.entity.HjOrderTicket;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: 订单
 */
public interface IHjOrderMainService extends IService<HjOrderMain> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(HjOrderMain hjOrderMain, List<HjOrderCustomer> hjOrderCustomerList, List<HjOrderTicket> hjOrderTicketList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(HjOrderMain hjOrderMain, List<HjOrderCustomer> hjOrderCustomerList, List<HjOrderTicket> hjOrderTicketList);
	
	/**
	 * 删除一对多
	 */
	public void delMain(String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain(Collection<? extends Serializable> idList);
}
